<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <h2>生命周期</h2>
  </div>


  <script src="../vue3.js"></script>
  <script>
    const {createApp} = Vue;
    // 所有的生命周期钩子（函数）都是实例的选项
    createApp({
      mounted() {
        console.log("mounted");
      },
      created() {
        console.log("created");
      },
      
    }).mount("#app");
  </script>
</body>
</html>